package com.roadjava.GDOUGym.convert;


import com.roadjava.GDOUGym.bean.dto.EquipmentDTO;
import com.roadjava.GDOUGym.bean.dto.PlaceDTO;
import com.roadjava.GDOUGym.bean.entity.EquipmentDO;
import com.roadjava.GDOUGym.bean.entity.PlaceDO;
import org.mapstruct.Mapper;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

@Mapper(componentModel = "spring")
public abstract class EquipmentConvert {
    @Resource
    private HttpServletRequest httpServletRequest;

    public abstract EquipmentDO dto2do(EquipmentDTO dto);

    public abstract EquipmentDTO equipmentDo2dto(EquipmentDO equipmentDO);

    public abstract List<EquipmentDTO> dos2dtos(List<EquipmentDO> equipmentDOS);
}
